package Utils

/**
  * Created by hunter.coder 涛哥  
  * 2019/2/11 18:49
  * 交流qq:657270652
  * Version: 1.0
  * 更多学习资料：https://blog.csdn.net/coderblack/
  * Description:
  **/

class Demo(var id: Int) {

  /*def id_=(n: Int): Unit = {
    this.id = n
  }*/
}

object CaseDemo {

  def main(args: Array[String]): Unit = {
    val d = new Demo(10)
    d.id=6
    println(d.id)

  }

}
